home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Borland
/
Borland C++ V5.02
/
TPROFEXM.PAK
/
PLOST.C
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-06
|
580b
|
27 lines
/* Copyright (c) 1990, 1992, Borland International */
#include <stdio.h>
#include <dos.h> /* contains prototype for delay() */
void lost_in_town(void);
void main(void)
{
printf("Entering main\n");
lost_in_town();
delay(1000);
printf("Leaving main\n\n");
delay(1000);
}
void lost_in_town(void)
{
int i;
printf("Looking for highway...\n");
delay(100);
for (i=0; i<10; i++)
{
printf("Ask for directions\n");
printf("Wrong turn\n\n");
delay(1000);
}
printf("On the road again\n");
}